import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.util.List;

public class ObjectInputStreamDemo19 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream objectInputStream = new ObjectInputStream(new FileInputStream("C:\\Users\\Administrator\\Desktop\\weibo.data"));
        List<WeiBo> weiBoList = (List<WeiBo>) objectInputStream.readObject();
        for (WeiBo weiBo : weiBoList) {
            System.out.println(weiBo);
        }
        objectInputStream.close();

        


    }
}
